package com.aha.dataanalyzeandview.service;


import com.aha.dataanalyzeandview.entity.metadata.ConnectionInfoEntity;

import java.util.List;
import java.util.Map;

public interface IConnectionService {

    /**
     * 查询所有的数据源连接信息
     * @return
     */
    public List<ConnectionInfoEntity> queryAllConnectionInfo (Map<String, Object> map );

    /**
     * 测试数据源信息
     * @param connectionInfoEntity
     * @return
     */
    public boolean testConnection(ConnectionInfoEntity connectionInfoEntity);


    /**
     * 添加数据源信息
     * @param connectionInfoEntity
     * @return
     */
    public Integer addConnectionInfo(ConnectionInfoEntity connectionInfoEntity);
}
